package com.zzh.camera2.manager;

import android.content.Context;
import android.view.TextureView;

/**
 * @author ：zuhui.zhang
 * time ： 2021/7/29 17:31
 */
public interface IUvcCameraManager {
    // 初始化uvc camera 并打开rgb相机
    void initUVCCamera(TextureView textureView, Context context);

    // 开始或停止uvc camera 预览
    void switchUVCPreview(boolean showPreview);

    // 设置是否显示rgb预览画面
    void switchIsDrawRgbPreview();

    boolean isDrawRgbPreview();

    // 关闭uvc camera
    void closeUVCCamera();

    // 回调函数
    void setHost(UvcCameraManagerHost host);

    public interface UvcCameraManagerHost {
        void onUvcPreviewCallback(byte[] data);
    }
}
